import java.util.Scanner;
public class lab6_s3 {
	public static void main(String[] args) {
		
		Scanner in = new Scanner(System.in); 
		String name =in.nextLine();
		System.out.println(name);
		
           name=name.toLowerCase(); 
				
      for(int i=0;i<=name.length()-1;i++)
		{
		if (name.charAt(i)==' ')
			System.out.println();
		if (name.charAt(i)=='a')
			System.out.print(".-");
		if (name.charAt(i)=='b')
			System.out.print("-...");
		if (name.charAt(i)=='c')
			System.out.print("-.-.");
		if (name.charAt(i)=='d')
			System.out.print("-..");
		if (name.charAt(i)=='e')
			System.out.print(".");
		if (name.charAt(i)=='f')
			System.out.print("..-.");
		if (name.charAt(i)=='g')
			System.out.print("--.");
		if (name.charAt(i)=='h')
			System.out.print("....");
		if (name.charAt(i)=='i')
			System.out.print("..");
		if (name.charAt(i)=='j')
			System.out.print(".---");
		if (name.charAt(i)=='k')
			System.out.print("-.-");
		if (name.charAt(i)=='l')
			System.out.print(".-..");
		if (name.charAt(i)=='m')
			System.out.print("--");
		if (name.charAt(i)=='n')
			System.out.print("-.");
		if (name.charAt(i)=='o')
			System.out.print("---");
		if (name.charAt(i)=='p')
			System.out.print(".--.");
		if (name.charAt(i)=='q')
			System.out.print("--.-");
		if (name.charAt(i)=='r')
			System.out.print(".-.");
		if (name.charAt(i)=='s')
			System.out.print("...");
		if (name.charAt(i)=='t')
			System.out.print("-");
		if (name.charAt(i)=='u')
			System.out.print("..-");
		if (name.charAt(i)=='v')
			System.out.print("...-");
		if (name.charAt(i)=='w')
			System.out.print(".--");
		if (name.charAt(i)=='x')
			System.out.print("-..-");
		if (name.charAt(i)=='y')
			System.out.print("-.--");
		if (name.charAt(i)=='z')
			System.out.print("--..");
		}
	}

}
